package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.Withdrawals;
import com.yunshang.shoppingmall.mapper.WithdrawalsMapper;
import com.yunshang.shoppingmall.service.WithdrawalsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("withdrawalsService")
public class WithdrawalsServiceImpl implements WithdrawalsService {
    @Autowired
    WithdrawalsMapper withdrawalsMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return withdrawalsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Withdrawals record) {
        return withdrawalsMapper.insert(record);
    }

    @Override
    public int insertSelective(Withdrawals record) {
        return withdrawalsMapper.insertSelective(record);
    }

    @Override
    public Withdrawals selectByPrimaryKey(Integer id) {
        return withdrawalsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Withdrawals record) {
        return withdrawalsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Withdrawals record) {
        return 0;
    }

    @Override
    public List<Withdrawals> selectWithdrawalsByUserNoId(int userNoId) {
        return withdrawalsMapper.selectWithdrawalsByUserNoId(userNoId);
    }

    @Override
    public List<Withdrawals> selectWithdrawalsListBySign(String tixianSign) {
        return withdrawalsMapper.selectWithdrawalsListBySign(tixianSign);
    }
}
